//
//  YGProductBLL.h
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/25.
//

#import <Foundation/Foundation.h>
#import "YGSearchProductModel.h"
#import "YGProductCenterModel.h"
#import "YGGoodsTypeLowerModel.h"
#import "YGGoodsSelectModel.h"
#import "YGProductItemModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface YGProductBLL : NSObject

+ (void)requestSearchWithSuccess:(void (^)(YGSearchProductModel *model))success fail:(void (^)(NSError *error))fail;

+ (void)requestProductTypeWithSuccess:(void(^)(NSArray<YGGoodsSelectModel *> *model))success fail:(void (^)(NSError *error))fail;

+ (void)requestGoodsTypeLowerWithCategoryId:(NSString *)cateId Success:(void(^)(NSArray<YGGoodsSelectModel *> *model))success fail:(void (^)(NSError *error))fail;

+ (void)requestKeshiWithSuccess:(void (^)(NSArray<YGGoodsSelectModel *> *model))success fail:(void (^)(NSError *error))fail;

+ (void)requestProductWithTypeId:(NSString *)typeId
                    departmentId:(NSString *)departmentId
                            sort:(NSInteger)sort
                            page:(NSInteger)page
                            rows:(NSInteger)rows
                       goodsName:(NSString *)goodsName
                        minPrice:(CGFloat)minPrice
                        maxPrice:(CGFloat)maxPrice
                        Success:(void (^)(NSArray<YGProductItemModel *> *model,NSInteger totalPage))success fail:(void (^)(NSError *error))fail;

@end


NS_ASSUME_NONNULL_END
